import {
  request
} from '@/api/request'

export const getIndexData = (data) => {
  return request({
    url: '/SelfServiceMachine/homeListByCode',
    method: 'POST',
    data
  })
}
export const getImage = (data) => {
  return request({
    url: '/base64/SFRUUEJJTiBpcyBhd2Vzb21l',
    method: 'GET',
    data
  })
}

export const getHttpApi = (data) => {
  return request({
    url: `/addons/yun_shop/api.php?i=${uni.getStorageSync('i')||41}`,
    method: 'GET',
    data
  })
}

export const postHttpApi = (data,parmas) => {
  return request({
    url: `/addons/yun_shop/api.php?i=${uni.getStorageSync('i')||41}` + parmas,
    method: 'POST',
    data
  })
}